package com.clw.template.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="YhAdParam对象", description="广告参数类")
public class YhAdParam {
    @NotBlank(message = "广告名称不能为空")
    @ApiModelProperty(value = "广告名称")
    private String name;

    @NotBlank(message = "链接不能为空")
    @ApiModelProperty(value = "链接")
    private String url;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态（0启动，1禁用）")
    private Boolean status;
}
